/*
 * @Descripttion:
 * @Author: caijj
 * @Date: 2021-03-18 16:10:21
 * @LastEditors: caijj
 * @LastEditTime: 2021-03-19 10:22:24
 */
const KEY = 'RETAIL_KEY';

export function getRetailStorage() {
  const storage = window.sessionStorage.getItem(KEY);
  return storage ? JSON.parse(storage) : {};
}

export function setRetailStorage(data) {
  return window.sessionStorage.setItem(KEY, JSON.stringify(data || ''));
}

export function removeRetailStorage() {
  return window.sessionStorage.removeItem(KEY);
}
